package com.ruoyi.product.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品对象 goods
 * 
 * @author ruoyi
 * @date 2021-07-04
 */
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 商户id */
    private Long mid;

    /** 货号 */
    @Excel(name = "货号")
    private String no;

    /** 店铺目录 */
    @Excel(name = "店铺目录")
    private Long did;

    /** 产品目录 */
    @Excel(name = "产品目录")
    private Long cid;

    /** 品牌 */
    @Excel(name = "品牌")
    private String brand;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 副标题 */
    @Excel(name = "副标题")
    private String subtitle;

    /** 库存 */
    @Excel(name = "库存")
    private Long quanity;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 折扣 */
    @Excel(name = "折扣")
    private BigDecimal discount;

    /** 产地 */
    @Excel(name = "产地")
    private String origin;

    /** 规格 */
    @Excel(name = "规格")
    private String specifications;

    /** 保质期小时 */
    @Excel(name = "保质期小时")
    private Long expiration;

    /** 保鲜方式 */
    @Excel(name = "保鲜方式")
    private Long freshKeeping;

    /** 发布（0编辑中 1上架 2下架） */
    @Excel(name = "发布",  dictType = "goods.n_publish",readConverterExp = "0=编辑中,1=上架,2=下架")
    private String publish;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMid(Long mid) 
    {
        this.mid = mid;
    }

    public Long getMid() 
    {
        return mid;
    }
    public void setNo(String no) 
    {
        this.no = no;
    }

    public String getNo() 
    {
        return no;
    }
    public void setDid(Long did) 
    {
        this.did = did;
    }

    public Long getDid() 
    {
        return did;
    }
    public void setCid(Long cid) 
    {
        this.cid = cid;
    }

    public Long getCid() 
    {
        return cid;
    }
    public void setBrand(String brand) 
    {
        this.brand = brand;
    }

    public String getBrand() 
    {
        return brand;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setSubtitle(String subtitle) 
    {
        this.subtitle = subtitle;
    }

    public String getSubtitle() 
    {
        return subtitle;
    }
    public void setQuanity(Long quanity) 
    {
        this.quanity = quanity;
    }

    public Long getQuanity() 
    {
        return quanity;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setDiscount(BigDecimal discount) 
    {
        this.discount = discount;
    }

    public BigDecimal getDiscount() 
    {
        return discount;
    }
    public void setOrigin(String origin) 
    {
        this.origin = origin;
    }

    public String getOrigin() 
    {
        return origin;
    }
    public void setSpecifications(String specifications) 
    {
        this.specifications = specifications;
    }

    public String getSpecifications() 
    {
        return specifications;
    }
    public void setExpiration(Long expiration) 
    {
        this.expiration = expiration;
    }

    public Long getExpiration() 
    {
        return expiration;
    }
    public void setFreshKeeping(Long freshKeeping) 
    {
        this.freshKeeping = freshKeeping;
    }

    public Long getFreshKeeping() 
    {
        return freshKeeping;
    }
    public void setPublish(String publish) 
    {
        this.publish = publish;
    }

    public String getPublish() 
    {
        return publish;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mid", getMid())
            .append("no", getNo())
            .append("did", getDid())
            .append("cid", getCid())
            .append("brand", getBrand())
            .append("title", getTitle())
            .append("subtitle", getSubtitle())
            .append("quanity", getQuanity())
            .append("price", getPrice())
            .append("discount", getDiscount())
            .append("origin", getOrigin())
            .append("specifications", getSpecifications())
            .append("expiration", getExpiration())
            .append("freshKeeping", getFreshKeeping())
            .append("publish", getPublish())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
